package com.travelroute.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 华无夜
 * @since 2025-01-10
 */
@Getter
@Setter
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 动态ID，主键
     */
    @TableId(value = "postId", type = IdType.AUTO)
    private Integer postId;

    /**
     * 用户ID，外键
     */
    private Integer userId;

    /**
     * 内容
     */
    private String content;

    /**
     * 图片或视频URL
     */
    private String imageUrl;

    /**
     * 发布时的地理位置
     */
    private String location;

    /**
     * 发布时间
     */
    private LocalDateTime postTime;

    /**
     * 点赞数
     */
    private String likes;

    /**
     * 评论数
     */
    private String comments;
}
